<template>
  <div v-loading="loading" class="wechat-pc"></div>
</template>
<script>
// import { getUrlParams } from '@/utils'
export default {
  layout: 'wechat',
  data() {
    return {
      loading: true
    }
  },
  mounted() {
    const code = this.$route.query.code || ''
    if (code) {
      window.parent.postMessage({
        action: 'getWxCode',
        info: code
      }, '*')
    }
  }
}
</script>
<style lang="scss" scoped>
.wechat-pc {
  width: 100%;
  height: 250px;
}
</style>
